import { RouteView } from '@/layouts'
const pre = 'curPrice',
  permission = 'ActivityCutPrice'

export default [
  {
    path: `/${pre}`,
    name: `${pre}`,
    component: RouteView,
    redirect: `/${pre}/info`,
    meta: { title: '砍价', icon: 'profile', permission: [permission] },
    children: [
      {
        path: `/${pre}/info`,
        name: `${pre}Info`,
        component: () => import('@/views/marketing/curPrice/info'),
        meta: { title: '砍价信息', permission: [permission] },
      },
      {
        path: `/${pre}/activityList`,
        name: `${pre}ActivityList`,
        component: () => import('@/views/marketing/curPrice/activityList'),
        meta: { title: '砍价活动', permission: [permission] },
      },
      {
        path: `/${pre}/activityEdit`,
        name: `${pre}ActivityEdit`,
        component: () => import('@/views/marketing/curPrice/activityEdit'),
        meta: { title: '活动编辑', permission: [permission] },
        hidden: true,
      },
      {
        path: `/${pre}/category`,
        name: `${pre}Category`,
        component: () => import('@/views/marketing/curPrice/category'),
        meta: { title: '砍价分类', permission: [permission] },
      },
      {
        path: `/${pre}/banner`,
        name: `${pre}Banner`,
        component: () => import('@/views/marketing/curPrice/banner'),
        meta: { title: '轮播广告', permission: [permission] },
      },
      {
        path: `/${pre}/setting`,
        name: `${pre}Setting`,
        component: () => import('@/views/marketing/curPrice/setting'),
        meta: { title: '砍价设置', permission: [permission] },
      },
    ],
  },
]
